package com.gs.thunder_manage.service;

import com.gs.thunder_manage.entity.Resource;
import com.gs.thunder_manage.entity.Role;
import com.gs.thunder_manage.entity.User;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Legolas
 * Date: 2017/12/20 0020
 */
@Service
public interface UserService {

    void addUser(User user);
    void addUserRole(String userId,int roleId);


    User getUserById(String id);
    List<User> getAllUser();
    List<Role> getRolesByUserId(String userId);
    List<Resource> getResourcesByUserId(String id);


    void deleteUser(String userId);
    void deleteUserRoleByUserId(String userId);
}
